import { createApp } from 'vue'
import './style.css'
import './assets/fonts/iconfont.css'
import 'element-plus/theme-chalk/dark/css-vars.css'
import App from './App.vue'
import router from "./router"
import { useDark, useToggle } from '@vueuse/core'
useDark({ valueLight: "light", valueDark: "dark" })
createApp(App).use(router).mount('#app').$nextTick(() => {
    window.ipcRenderer.on('dark', (_: any, isDark: any) => {
        useToggle(isDark)
    })
})
